<?php

use yii\db\Schema;
use yii\db\Migration;

class m160126_031120_add_solution_balance_burn_hour_field extends Migration
{
    public function up()
    {
        $this->addColumn('{{%solution_balance}}', 'burn_hours', 'int(11) not null default 0 comment "策略已消耗时长，若策略排期包含已过去时间，初始值为已过去时长" after hours');
    }

    public function down()
    {
        return $this->dropColumn('{{%solution_balance}}', 'burn_hours');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
